package com.xinqing.test.modle;

import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

public class GeneralQueryPeq {
    @NotEmpty(message = "sql不能为空")
    private String sql;
    private String eng = "Hive";
    private String apt;
    private String key;
    @Min(value = 0, message = "live最小值为0")
    @Max(value = 12 * 30 * 24, message = "live最大值为12 * 30 * 24")
    private Double live = 2 * 1.0;
    private Boolean cache = true;
    private Integer wait = 7;
    private String refresh;
    private double api_ver = 1.0;
    private int size = 50000;
    private String cbUrl;
    private String esQueryType = "http";
    private String strictDepend; //严格依赖结果，出现问题需要不断重试
    private String requestId;

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public String getEng() {
        return eng;
    }

    public void setEng(String eng) {
        this.eng = eng;
    }

    public String getApt() {
        return apt;
    }

    public void setApt(String apt) {
        this.apt = apt;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Double getLive() {
        return live;
    }

    public void setLive(Double live) {
        this.live = live;
    }

    public Boolean getCache() {
        return cache;
    }

    public void setCache(Boolean cache) {
        this.cache = cache;
    }

    public Integer getWait() {
        return wait;
    }

    public void setWait(Integer wait) {
        this.wait = wait;
    }

    public String getRefresh() {
        return refresh;
    }

    public void setRefresh(String refresh) {
        this.refresh = refresh;
    }

    public double getApi_ver() {
        return api_ver;
    }

    public void setApi_ver(double api_ver) {
        this.api_ver = api_ver;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getCbUrl() {
        return cbUrl;
    }

    public void setCbUrl(String cbUrl) {
        this.cbUrl = cbUrl;
    }

    public String getEsQueryType() {
        return esQueryType;
    }

    public void setEsQueryType(String esQueryType) {
        this.esQueryType = esQueryType;
    }

    public String getStrictDepend() {
        return strictDepend;
    }

    public void setStrictDepend(String strictDepend) {
        this.strictDepend = strictDepend;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    @Override
    public String toString() {
        return "GeneralQueryPeq{" +
                "sql='" + sql + '\'' +
                ", eng='" + eng + '\'' +
                ", apt='" + apt + '\'' +
                ", key='" + key + '\'' +
                ", live=" + live +
                ", cache=" + cache +
                ", wait=" + wait +
                ", refresh='" + refresh + '\'' +
                ", api_ver=" + api_ver +
                ", size=" + size +
                ", cbUrl='" + cbUrl + '\'' +
                ", esQueryType='" + esQueryType + '\'' +
                ", strictDepend='" + strictDepend + '\'' +
                ", requestId='" + requestId + '\'' +
                '}';
    }
}

